package com.kireeti.springBeans;

public class Bean1 {

	InterFace1 if1;
	
	public Bean1()
	{
		System.out.println("hello");
	}
	public Bean1(InterFace1 if1)
	{
		this.if1=if1;
	}
	
	public InterFace1 getIf1() {
		return if1;
	}
	public void setIf1(InterFace1 if1) {
		this.if1 = if1;
	}

	
	public void print()
	{
		if1.print();
	}
	
}
